package com.hczt.xhminiapp.db.repository;

import com.hczt.xhminiapp.db.entity.SysPermission;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SysPermissionRepository extends JpaRepository<SysPermission, String> {

    List<SysPermission> findByEnabledTrueOrderBySortAsc();

    List<SysPermission> findByPermissionIdIn(List<String> permissionIds);
}
